Component({
    properties: {
      redirectUrl: String,
      value: String
    },
    options: {

    },
    data: {
      
    },
    methods: {
        redirecting: function() {
            wx.navigateTo({
                url: this.properties.redirectUrl
            })
        },

        disableInput: function(_:WechatMiniprogram.Input) {
            return '';
        }
    },
    // 创建完毕，有this，不能setData
    created: function() {},
    // 挂载完毕，可以设置data
    attached: function() {
        this.setData({
            value: this.properties.value
        })
    },
    // 组件挂载完毕
    ready: function() {},
    // 组件移动
    moved: function() {},
    // 组件已经卸载
    detached: function() {},
    // 组件发生错误
    error: function() {},
  })